package com.honraepoder.strateegia;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Rect;

public class Rects extends Retangulo {

	private Bitmap bitmap;
	public int index;
	public Valor valor;
	
	public Rects() {
		super(0, 0, 0, 0);
		
	}
	
	public Bitmap getBitmap() {
		return bitmap;
	}
	
	public void setBitmap(Bitmap bitmap) {
		this.bitmap = bitmap;
	}

	enum Valor
	{
		Vazio,
		Cheio
	
	}
	
	public void position(int x, int y) {
		setX(x);
		setY(y);
	}

	public void draw(Canvas canvas, Paint paint) {
		r = new Rect(getX(), getY(), getX() + getWidth(), getY()+ getHeight());
		canvas.drawRect(r, paint);
	}

	int getIndex() {
		return index;
	}

	void setIndex(int index) {
		this.index = index;
	}

}
